package hydrap2p.gui.commands;

import hydrap2p.gui.GUIDataHandler;
import hydrap2p.gui.GUIDownloadListing;
import hydrap2p.gui.SearchObject;
import hydrap2p.gui.SearchPanel;

import java.util.List;

import org.apache.thrift.TException;

public class Cmd_SearchPanel_StopSearch implements Command {

	@Override
	public void execute() {
		
		GUIDataHandler.getInstance().stopSearch(SearchPanel.getInstance().getSearchID());
		CommandInvoker.getInstance().invokeCommand(new Cmd_SearchPanel_UpdateResults());
		
		System.out.println(getCommand());
		
	}

	@Override
	public String getCommand() {
		return this.getClass().getSimpleName();
	}

	@Override
	public void unexecute() {
		// TODO Auto-generated method stub

	}

}
